package com.oig.sys.auth.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@Schema(description = "登陆参数")
public class LoginDto {

    @Schema(description = "用户名")
    @NotEmpty(message = "参数错误，用户名不能为空")
    private String username;

    @Schema(description = "密码")
    @NotEmpty(message = "参数错误，密码不能为空")
    private String password;


    @Schema(description = "验证码")
    private String validCode;


}
